import time

import django.contrib.auth.views
from django.db import models


# Create your models here.
class Job(models.Model):
    name = models.CharField(max_length=200)
    introduction = models.TextField(default=None)
    command = models.TextField(default=None)
    create_time = models.DateTimeField(time.time())
    creator = models.ForeignKey(django.contrib.auth.views.UserModel, on_delete=models.DO_NOTHING)

    def __str__(self):
        return self.name
